package com.naiterui.ehp.bs.cms.modules.base.mapper;

import org.apache.ibatis.annotations.Param;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.naiterui.ehp.bs.cms.common.constants.DsName;
import com.naiterui.ehp.bs.cms.modules.base.entity.Department;
import com.naiterui.ehp.bs.cms.modules.base.vo.DepartmentPageVO;

/**
 * @author 潘xin
 * @since 2021/9/10
 */
@DS(DsName.EHP)
public interface DepartmentBaseMapper extends BaseMapper<Department> {

    Page<DepartmentPageVO> getPage(@Param("page") IPage<DepartmentPageVO> page,
        @Param("ew") Wrapper<DepartmentPageVO> entityWrapper);

    void updateDepartmentStatus(@Param("departmentId") Long departmentId, @Param("status") Integer status);

}
